package com.mida.dms.knw.entity.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.mida.dms.knw.entity.KnwIndividual;
import com.mida.dms.knw.entity.KnwIndividualSolt;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 实例值集
 * @author conyfrommars
 *
 */
@Setter
@Getter
@NoArgsConstructor
public class SoltVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    private Long dataSetSoid;

    private String dataSetName;

    @JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    private Long dataType;

    private String dataValue;

    @JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    private Long derailCodingSystemSoid;

    @JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    private Long basic;

    //slotName
    private String slotName;

    public SoltVo (KnwIndividualSolt k) {
        if (k != null) {
            this.setDataSetName(k.getDataSetName());
            this.setDataType(k.getDataType());
            this.setDataSetSoid(k.getDataSetSoid());
            this.setDataValue(k.getDataValue());
            this.setDerailCodingSystemSoid(k.getDerailCodingSystemSoid());
            this.setBasic(k.getBasic());
        }
    }
    public SoltVo (KnwIndividualSoltVos k) {
        if (k != null) {
            this.setDataSetName(k.getDataSetName());
            this.setDataType(k.getDataType());
            this.setDataSetSoid(k.getDataSetSoid());
            this.setDataValue(k.getDataValue());
            this.setDerailCodingSystemSoid(k.getDerailCodingSystemSoid());
            this.setBasic(k.getBasic());
            this.setSlotName(k.getSlotName());
        }
    }
}